<!--[*
// ----------------------------------------------------------------------
// Source file:   $Source: /cvsroot/pn-commerce/pn-commerce/pntemplates/pncommerce_cmlogapi_main.html,v $
//
// Last changes from:  $Author: landseer $
//
// Revision:           $Revision: 1.5 $
//
// Date of revision    $Date: 2004/08/24 10:22:10 $
//
// ----------------------------------------------------------------------
*]-->

<!--[ include file=pncommerce_admin_commonHeader.html ]-->

<!--[ pncGetConfigSupplier ]-->
<!--[ pngetstatusmsg ]--><br />
<fieldset>
<legend>
<!--[ pnml name='_PNC_LOGMANAGEMENTDESC' ]-->&nbsp; <a <!--[pncManualURL Chapter="901" OpenHelpWindow='1']-->> <!--[pnimg src="doc.gif" border='0' ]--></a>
</legend>
<form action='<!--[ pncModURL type=cmlogapi func=main ]-->' method='post'>
 <!--IMPORTANT!-->
<input type="hidden" name="authid" value="<!--[pnsecgenauthkey module="pncommerce"]-->">
<table>
    <tr>
        <td>
            <input type='radio' name='mode' value='bylevel' checked><!--[ pnml name='_PNC_BYLOGLEVEL' ]-->
        </td>
        <td align='center'>
            <select name='filter'>
            <option value=0><!--[ pnml name='_PNC_GREATER' ]--></option>
            <option value=1><!--[ pnml name='_PNC_GREATEREQUAL' ]--></option>
            <option value=2 selected><!--[ pnml name='_PNC_EQUAL' ]--></option>
            <option value=3><!--[ pnml name='_PNC_LESSEREQUAL' ]--></option>
            <option value=4><!--[ pnml name='_PNC_LESSER' ]--></option>
            </select>
        </td>
        <td>
            &nbsp;<!--[ html_options name='loglevel' options=$LogLevels selected=$shopConfigSupplier.MAximumLogLevel ]-->
        </td>
    </tr>
    <tr>
        <td>
            <input type='radio' name='mode' value='bydate'><!--[ pnml name='_PNC_BYDATE' ]-->
        </td>
        <td align='center'>
            <table align='right'>
                <tr>
                    <td align='right'>
                        <!--[ pnml name='_PNC_FROMDATE' ]-->:
                    </td>
                </tr>
                <tr>
                    <td align='right'>
                        <!--[ pnml name='_PNC_TODATE' ]-->:
                    </td>
                </tr>
            </table>
        </td>
        <td>
            <table>
                <tr>
                    <td>
                        <!--[ html_select_date prefix=start start_year=2003 end_year=2010 ]-->
                    </td>
                </tr>
                <tr>
                    <td>
                        <!--[ html_select_date prefix=end start_year=2003 end_year=2010]-->
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td colspan='3' align='left'>
            <br><!--[ pnml name='_PNC_LOGACTION' ]--><br>
        </td>
    </tr>
    <tr>
        <td colspan='3'>
            <input type='radio' name='logaction' value='read' checked><!--[ pnml name='_PNC_READLOG' ]-->
        </td>
    </tr>
    <tr>
        <td colspan='3'>
            <input type='radio' name='logaction' value='del'><!--[ pnml name='_PNC_DELETELOG' ]-->
        </td>
    </tr>
    <tr>
        <td colspan='3' align='center'>
            <input class='pn-button' type='submit' name='dolog' value='<!--[ pnml name='_PNC_SUBMIT' ]-->'>
        </td>
    </tr>
        
</table>
</form>
</fieldset>

<br><br>
<fieldset>
    <legend>
    <!--[ pnml name='_PNC_LOGENTRIES' ]-->
    </legend>
    <!--[ if $LogEntryCount > 0 ]-->
    <table width='100%'>
        <!--[ foreach item=LogEntry from=$LogEntries ]-->
            <tr width='100%'>
                <td nowrap>
                    <!--[ $LogEntry.timestamp ]-->
                </td>
                <td nowrap>
                    <!--[ $LogEntry.ip ]-->
                </td>
                <td nowrap>
                    <!--[ $LogEntry.username ]-->
                </td>
                <td nowrap>
                    <!--[ $LogEntry.level ]-->
                </td>
            </tr>
            <tr width='100%'>
                <td colspan='4' align='left' nowrap>
                    <!--[ $LogEntry.text ]-->
                </td>
            </tr>
        <!--[ /foreach ]-->
    </table>
    <!--[ else ]-->
    <!--[ /if ]-->
</fieldset>

<!--[ include file=pncommerce_admin_commonFooter.html ]-->
